/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.rafkind.resrev.dao;

import com.rafkind.resrev.data.Resource;
import java.util.List;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author Fictional Hero
 */
public interface ResourceDao {
  Resource getResource(int id);  
  List<Resource> getAllResources();
  List<Resource> getAllResources(int first, int count, 
      String orderByAttribute, boolean ascending);
  int countAllResources();
  
  @Transactional
  void saveResource(Resource user);
  
  @Transactional
  void deleteResource(Resource user);
}
